package com.wind.taobao.api.trade.item.rest
{
	import com.wind.taobao.api.IPublicAPI;
	import com.wind.taobao.core.exception.InvalidRequestParametersException;
	import com.wind.taobao.core.util.TaobaoUtils;
	import com.wind.taobao.core.webservice.TaobaoRequest;

	/**
	 * taobao.postage.get Request
	 * @author fxy
	 *
	 */
	public class PostageGetRequest extends TaobaoRequest implements IPublicAPI
	{
		public override function get method():String
		{
			return "taobao.postage.get"
		}
		/**
		 * Y 	 需返回的字段列表.可选值:Postage结构体中的所有字段;字段之间用","隔开
		 */
		[Bindable]
		public var fields:String;
		/**
		 * Y 	邮费模板id
		 */
		[Bindable]
		public var postage_id:String;
		/**
		 * Y 	卖家昵称
		 */
		[Bindable]
		public var nick:String;

		public override function validate():void
		{
			if (!TaobaoUtils.hasAllValue([fields, postage_id, nick]))
			{
				throw new InvalidRequestParametersException("请求参数[fields,postage_id,nick]不能为空");
			}
		}
	}
}